package com.chenchao.javaoop3;

import com.chenchao.javaoop.Person;
import com.chenchao.javaoop.Student;
import com.chenchao.javaopp2.Teacher;

/**
 * @encoding : UTF-8
 * @Time : 2020/11/9 13:32
 * @Author : Chen Chao
 * @File : javaSE.com.chenchao.javaoop3.Test3.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 */
public class Test {
    public static void main(String[] args) {
        Student student = new Student();
        Person fg = new Person("fg", 12);
        Teacher teacher = new Teacher();
        System.out.println(student.getAge());
        System.out.println(fg.getAge());
        System.out.println(teacher.getAge());
        teacher.teacher();

    }
}
